from django.conf.urls import url

# from apps.areas.views import AddressView
from apps.users.views import UserOrderInfoView
from . import views

urlpatterns = [
    url(r'^register/$', views.RegisterView.as_view(), name='register'),  # 注册
    url(r'^login/$', views.LoginView.as_view(), name='login'),  # 登录
    url(r'^logout/$', views.LogoutView.as_view(), name='logout'),  # 退出
    url(r'^usercenter/$', views.UserView.as_view(), name='usercenter'),  # 用户中心
    url(r'^password/$', views.ChangePasswordView.as_view(), name='password'),  # 修改密码
    url(r'^address/$', views.AddressView.as_view(), name='address'),
    url(r'^orders/info/(?P<page_num>\d+)/$', UserOrderInfoView.as_view(), name='my_orders')
    # url(r'^address/create/$', views.CreateAddressView.as_view(), name='createaddress'),
]
